package typage;
import java.util.*;
import ast.*;

// longueur de listes

public class ListUtil {
    static int length(VarList l) {
	int len = 0;
	for (Iterator it = l.iterator(); it.hasNext(); it.next()) len++;
	return len;
    }
    static int length(ExprList l) {
	int len = 0;
	for (Iterator it = l.iterator(); it.hasNext(); it.next()) len++;
	return len;
    }
}
